package com.bokey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName node
 */
@TableName(value ="node")
@Data
public class Node implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private Integer userId;

    /**
     * 
     */
    private String nodename;

    /**
     * 
     */
    private String className;

    /**
     * 
     */
    private String language;

    /**
     * 
     */
    // 出参格式,返回给前端的时间格式,加入timezone防止出现时间差，注意这里的"GMT+8"
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;

    /**
     * 
     */
    private Integer popularity;

    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}